<template>
   <div>
        <!--选中标签-->
        <div class="ms-3">
            <label>标签:</label>
            <el-tag
               v-for="(tag,index) in selectTags"
               :key="index"
               :type="tagColor[index]"
               class="ms-3"
            >
              {{ tag.tagName }}
            </el-tag>
        </div>
   </div>
</template>

<script>
export default {
    name:"NoteDetailTag",
    props:{ selectTags: Array },
    data() {
        return{
            //标签颜色
            tagColor:["","success","info","warning","danger"],
        };
    }

};
</script>

<style>

</style>